package org.myboot.MyPrint.starter;

import org.MySpringBoot.Annotations.Bean;
import org.MySpringBoot.Annotations.Component;
import org.MySpringBoot.Annotations.EnableConfigurationProperties;

@Component
@EnableConfigurationProperties(MyPrinterProperties.class)
//自动装配类（MyPrinterAutoConfiguration）
public class MyPrinterAutoConfiguration {

    @Bean
   //@ConditionalOnMissingBean
    public MyPrinter myPrinter(MyPrinterProperties properties) {
        return new MyPrinter(properties);
    }
}